﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BLL
{
    public class EquipmentRecord
    {
        /// <summary>
        /// 报废记录
        /// </summary>
        public class Abandon
        {
            /// <summary>
            /// 获取报废记录列表
            /// </summary>
            /// <param name="strWhere"></param>
            /// <returns></returns>
            public static List<Model.EquipmentAbandon> GetList(string strWhere = "")
            {
                return DAL.EquipmentRecord.Abandon.GetList(strWhere);
            }
        }
        /// <summary>
        /// 租借记录
        /// </summary>
        public class Rent
        {
            /// <summary>
            /// 获取租借记录列表
            /// </summary>
            /// <param name="strWhere"></param>
            /// <returns></returns>
            public static List<Model.EquipmentRent> GetList(string strWhere = "")
            {
                return DAL.EquipmentRecord.Rent.GetList(strWhere);
            }
            /// <summary>
            /// 根据EID查询一条借出未归还记录
            /// </summary>
            /// <param name="EID"></param>
            /// <returns></returns>
            public static Model.EquipmentRent SelectRentNoReturnByEID(int EID)
            {
                return DAL.EquipmentRecord.Rent.SelectRentNoReturnByEID(EID);
            }
        }

        public class Repair
        {
            /// <summary>
            /// 获取维修记录列表
            /// </summary>
            /// <param name="strWhere"></param>
            /// <returns></returns>
            public static List<Model.EquipmentRepair> GetList(string strWhere = "")
            {
                return DAL.EquipmentRecord.Repair.GetList(strWhere);
            }

            /// <summary>
            /// 根据EID查询一条报修未反馈记录
            /// </summary>
            /// <param name="EID"></param>
            /// <returns></returns>
            public static Model.EquipmentRepair SelectRepariNoReturnByEID(int EID)
            {
                return DAL.EquipmentRecord.Repair.SelectRepariNoReturnByEID(EID);
            }
        }
    }
}
